package com.hecate.common.db.basedao.insert;

import com.hecate.common.db.basedao.provider.insert.HecateInsertListProvider;
import com.hecate.common.db.basedo.IBase;
import org.apache.ibatis.annotations.InsertProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @author 黄星星
 * @date 2020-12-17
 */
@RegisterMapper
public interface HecateInsertListDao<T extends IBase> {

    @InsertProvider(type = HecateInsertListProvider.class, method = "dynamicSQL")
    int insertList(List<? extends T> recordList);
}
